import fetch from '@/utils/fetch';

export function getList(query) {
    query._ts = (new Date()).getTime();
    return fetch({
        url: '/statistics/order/list',
        method: 'get',
        params: query
    });
}


export function getDetail(orderSN) {
    var _ts = (new Date()).getTime();
    return fetch({
        url: '/statistics/order/detail',
        method: 'get',
        params: {
            orderSN,
            _ts
        }
    });
}

export function getStatisticsByDay(query) {
    query._ts = (new Date()).getTime();
    return fetch({
        url: '/statistics/order/statisticsday',
        method: 'get',
        params: query
    });
}


export function getStatisticsByMonth(query) {
    query._ts = (new Date()).getTime();
    return fetch({
        url: '/statistics/order/statisticsmonth',
        method: 'get',
        params: query
    });
}





